//
//  LLAudioRecord.h
//  LLFoundation
//
//  Created by my_liu on 2016/11/14.
//  Copyright © 2016年 . All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
#import "LLAudioRecordDelegate.h"
#import "LLAudioRecordSettings.h"

@interface LLAudioRecord : NSObject

@property (nonatomic,readonly)BOOL isRecording;

@property (nonatomic,readonly)CGFloat soundMouter;

@property (nonatomic,assign)NSTimeInterval limitRecordDuration;

/* 最小有小时间,默认1秒 */
@property (nonatomic,assign)NSTimeInterval minEffectDuration;

@property (nonatomic,weak)id<LLAudioRecordDelegate> delegate;

@property (nonatomic,strong)LLAudioRecordSettings *recordSettings;

/* 获取当前录制音频文件*/
- (LLAudioModel*)getCurrentRecordAudioFile;

- (void)startRecord;

- (void)finishRecord;

- (void)cancelRecord;

- (NSTimeInterval)currentRecordFileDuration;

@end
